Vqual global motion compensation implementation. More...
Go to the source code of this file.
Data Structures | |
| struct | VP_SpriteParameters |
Functions | |
| VQ_EXTERN_C VQ_DECL void | VP_GmcInit (long width, long height) |
| VQ_EXTERN_C VQ_DECL void | VP_Gmc (VP_Surface *ref, unsigned char *dst, int x, int y, VP_SpriteParameters *sp, int rc, int isChroma) |
| VQ_EXTERN_C VQ_DECL void | VP_GmcAmv (int x, int y, VP_SpriteParameters *sp, int *h, int *v, int width, int height, int quarter_sample) |
| VQ_EXTERN_C VQ_DECL void | VP_GmcInfo (VP_PluginInfo *info) |
This header defines the interface for the Vprove 'vpGmc' DLL. Users may customise the behaviour of Vprove by substituting there own DLL in place of the default supplied by Vqual.
To create a substitute DLL, users must compile a Microsoft Windows DLL using Microsoft Visual Studio. The DLL must export 'C' functions as declared in this header.
Copyright (C) 2003 Vqual
| VQ_EXTERN_C VQ_DECL void VP_GmcInit | ( | long | width, | |
| long | height | |||
| ) |
Initialise GMC module
| width | image width in pixels | |
| height | image height in pixels |
This should be called once before the first use of VP_Gmc() for a given image size.
| VQ_EXTERN_C VQ_DECL void VP_Gmc | ( | VP_Surface * | ref, | |
| unsigned char * | dst, | |||
| int | x, | |||
| int | y, | |||
| VP_SpriteParameters * | sp, | |||
| int | rc, | |||
| int | isChroma | |||
| ) |
Calculate motion predicted block with GMC model
| ref | pointer to VOP reference surface | |
| dst | pointer to 8x8 block to receive motion compensated result | |
| x | horizontal co-ordinate of block top-left pixel | |
| y | vertical co-ordinate of block top-left | |
| sp | pointer sprite parameter struct containing current parameters | |
| rc | rounding control value 0 or 1 |
| VQ_EXTERN_C VQ_DECL void VP_GmcAmv | ( | int | x, | |
| int | y, | |||
| VP_SpriteParameters * | sp, | |||
| int * | h, | |||
| int * | v, | |||
| int | width, | |||
| int | height, | |||
| int | quarter_sample | |||
| ) |
Calculate average motion vector for use as predictor candidate
| x | horizontal co-ordinate of block top-left pixel | |
| y | vertical co-ordinate of block top-left | |
| width | VOP width in pixels | |
| height | VOP height in pixels | |
| sp | pointer sprite parameter struct containing current parameters | |
| h | receives horizontal AMV component | |
| v | receives vertical AMV component |
| VQ_EXTERN_C VQ_DECL void VP_GmcInfo | ( | VP_PluginInfo * | info | ) |
Retrieve information about VP_Gmc implementation
| info | pointer to struct to be filled in |